package models;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;

import play.db.jpa.Model;

/**
 * 
 * @author emam
 *
 */
@Entity
public class Label extends Model{
	public String titel;
	@OneToMany
	public List<IdeasInLabel>ideas;
	
	/**
	 * @author emam
	 * @param titel  To save the titel of the label
	 * @param user   To save the user who create the label
	 */
	/*
	 * the method is used as constructor for the label class
	 */
	public Label(String titel){
		this.titel=titel;
		ideas=new ArrayList<IdeasInLabel>();
	}


}
